﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace BaseInfo
{
    [Comment("科室")]
    [Table("t_base_dept")]
    public class Dept : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public Dept(Guid keyId)

        {
            this.Id = keyId;
        }

        public Dept()
        {

        }
        [MaxLength(100)]
        [Comment("科室编码")]
        public string DeptCode { get; set; }

        [MaxLength(200)]
        [Comment("科室名称")]
        public string DeptName { get; set; }

      
        [Comment("助记码")]
        [MaxLength(400)]
        public string MnemCode { get; set; }

        [Comment("科室级别")]
        public int DeptLevel { get; set; }


        [Comment("父级科室")]
        public Guid PreDept { get; set; }
  
        [Comment("0.禁用 1.启用  2.全部")]
        public int IsActive { get; set; }


        [Comment("备注")]
        [MaxLength(500)]
        public string Remark { get; set; }

        public bool IsDeleted { get; set; } = false;

        public Guid? TenantId { get; set; }
    }
}
